package com.axc.gallery2.dbhelper;

import java.io.Serializable;

import android.os.Environment;

import com.renren.api.connect.android.photos.PhotoBean;

public class NetPhotosInfo implements Serializable{

    
    /**
     * 
     */
    private static final long serialVersionUID = -4444716358019780386L;
    private String pid;// 相片序号
    private String s_url;//微缩图路径
    private String b_url;//大图路径
    private String l_url;// 本地微缩图路径
    public String getPid() {
        return pid;
    }
    public void setPid(String pid) {
        this.pid = pid;
    }
    public String getS_url() {
        return s_url;
    }
    public void setS_url(String sUrl) {
        s_url = sUrl;
    }
    public String getB_url() {
        return b_url;
    }
    public void setB_url(String bUrl) {
        b_url = bUrl;
    }
    public String getL_url() {
        return l_url;
    }
    public void setL_url(String lUrl) {
        l_url = lUrl;
    }
    
    public NetPhotosInfo(String pid,String url_tiny,String url_large,String l_url){
        this.pid = pid;
        this.s_url = url_tiny;
        this.b_url  = url_large;
        this.l_url = l_url;
    }
    
    public NetPhotosInfo(PhotoBean photoBean){
        this.pid = String.valueOf(photoBean.getPid());
        this.s_url = photoBean.getUrlTiny();
        this.b_url  = photoBean.getUrlLarge();
        String lurlString = "/DCIM/Gallery2/temp/_"+photoBean.getUrlTiny().split("/")[photoBean.getUrlTiny().split("/").length-1];
        this.l_url = Environment.getExternalStorageDirectory().getPath()+lurlString.substring(0, lurlString.length()-4);
        
    }

}
